Skip to content

Conversation

@zmoon
Copy link
Owner

@zmoon zmoon commented Dec 18, 2025

No description provided.

note that .gitignore isn't actually excluded from the sdist,
at least currently, since it is needed for hatch(-vcs) to build
the wheel
in favor of what hatch-vcs says
since mypy and flake8 both don't like it
@zmoon zmoon marked this pull request as ready for review December 18, 2025 20:50
@zmoon zmoon requested a review from Copilot December 18, 2025 20:51
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the build backend from flit-core to hatchling with hatch-vcs for automatic version management from git tags. The change eliminates manual version string maintenance by using VCS-based versioning and removes custom version retrieval logic.

Key changes:

  • Replaced flit-core with hatchling and hatch-vcs in the build system
  • Automated version management through hatch-vcs with dynamic version import from _version.py
  • Simplified version display logic in CLI and panel app by removing git subprocess calls
  • Added two new guitar string entries to the D'Addario product data

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pyproject.toml Updated build backend to hatchling, configured hatch-vcs for version management, and refined build target exclusions
stringcalc/init.py Changed to dynamically import version from hatch-vcs generated _version.py file with fallback to "0.0.0"
stringcalc/util.py Removed entire utility module containing custom git-based version retrieval function
stringcalc/cli.py Simplified version display by parsing version string format instead of executing git subprocess
panel/app.py Simplified get_version() to directly access __version__ attribute without git subprocess fallback
.gitignore Added _version.py to ignore the hatch-vcs generated version file
stringcalc/data/daddario-stp.csv Added two new string product entries (XTNW059 and XTPB028)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@zmoon zmoon merged commit 63199da into main Dec 18, 2025
8 checks passed
@zmoon zmoon deleted the hatch-vcs branch December 18, 2025 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants